package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.BaseDao;
import com.zr.dao.FuncDao;
import com.zr.model.TFunc;
import com.zr.service.FuncService;

import net.sf.json.JSONArray;

@Service("funcService")
public class FuncServiceImpl implements FuncService {
	@Resource
	private BaseDao<TFunc>  baseDao;
	@Resource
	private FuncDao<TFunc> funcDao;
	@Override
	public JSONArray getAllFunc(int parentId) {
		// TODO Auto-generated method stub
		return funcDao.getAllFuncById(parentId);
	}

	@Override
	public int findFunId() {
		// TODO Auto-generated method stub
		return funcDao.findFuncID();
	}

}
